module.exports = class extends think.Logic {
  indexAction() {
    think.logger.info('Logic index Action')
  }
  async loginAction() {
    const rules = {
      username: {
        required: true
      },
      password: {
        required: true
      }
    }
    const flag = this.validate(rules)
    if(!flag) {
      return this.fail(500, '参数不全')
    }
  }
  async infoAction() {
    
  }
};